<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
	<head>
		<title><ui:insert name="titulo" /></title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

		<link rel="stylesheet" type="text/css" href="styles.css" />
		<script type="text/javascript">

function ventana(var url, var alto, var ancho){
	window.open(url,"Ventana","height="+alto+",width="+ancho+",status=no,menubar=no,resizable=no,titlebar=no,toolbar=no",false);
}
</script>
	</head>
	<body>


		<f:view>
			<h:form>
				<div align="center" style="height: 100%; padding-top: 50px">
					<table width="100%">
						<tr>
							<td height="30%" colspan="2">
								<h2>
									Gestor de Ventas y Empleados
								</h2>
							</td>
						</tr>

						<tr>
							<td width="20%" height="30%" rowspan="2">
								<h:panelGrid border="1" columns="1">
									<h:commandLink value="Ventas" action="ventas" />
									<h:commandLink value="Pedidos" action="pedidos" />
									<h:commandLink value="Marcas" action="marcas" />
									<h:commandLink value="Mercaderias" action="mercaderias" />
									<h:commandLink value="Sucursales" action="sucursales" />
									<h:commandLink value="Regiones" action="regiones" />
									<h:commandLink value="Tipo de Gastos" action="tipogasto" />
									<h:commandLink value="Asignar Gastos" action="gasto" />
									<h:commandLink value="Clientes" action="clientes" />
									<h:commandLink value="Proveedores" action="proveedores" />
									<h:commandLink value="Empleados" action="empleados" />
									<h:commandLink value="Reportes" action="reportes" />
								</h:panelGrid>
							</td>
							<td width="80%" height="30%">
								<ui:insert name="titulo" />
							</td>
						</tr>
						<tr>
							<td valign="top" style="padding-top: 20px; padding-left: 50px;">
								<h:panelGrid columns="1">
									<ui:insert name="contenido" />
									<h:messages globalOnly="true" style="color: blue;" />
								</h:panelGrid>
							</td>
						</tr>
					</table>
				</div>
			</h:form>
		</f:view>
	</body>
</html>
